import {_decorator, Component, Node, Vec3, Enum} from 'cc';

const {ccclass, property} = _decorator;

enum ROAD_POINT_TYPE {
    NORMAL = 1,
    START, GREETING,
    GOODBYE,
    END,
    AI_START,
}

Enum(ROAD_POINT_TYPE);

enum ROAD_MOVE_TYPE {
    LINE = 1,
    CURVE
}

Enum(ROAD_MOVE_TYPE);

@ccclass('RoadManager')
export class RoadManager extends Component {

    @property({type: ROAD_POINT_TYPE, displayOrder: 1})
    type = ROAD_POINT_TYPE.NORMAL;

    @property({
        type: Node,
        displayOrder: 2,
    })
    nextStation: Node = null;

    @property({
        type: ROAD_MOVE_TYPE
    })
    moveType = ROAD_MOVE_TYPE.LINE;

    @property
    clockwise = true;
    @property({type: Vec3})
    direction = new Vec3(1, 0, 0);

    @property
    interval = 3;

    @property delayTime = 0;

    @property
    speed = 0.05;

    @property
    cars = '';

    start() {

    }

    update(deltaTime: number) {

    }
}


